widget-factory: Make the print dialog more functional
authorMatthias Clasen <mclasen@redhat.com>
Sat, 13 Jun 2020 12:59:21 +0000 (08:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 13 Jun 2020 12:59:21 +0000 (08:59 -0400)
Allow opening the papersize dialog.

demos/widget-factory/widget-factory.c

index bcfe73ceab628abcad88a5246dbdb83c795c5138..abc5fd12bae7534d7f8638e2ca4ba2d7853d18e2 100644 (file)
@@ -408,6 +408,8 @@ activate_print (GSimpleAction *action,
   g_signal_connect (op, "draw-page", G_CALLBACK (print_operation_page), window);
   g_signal_connect (op, "done", G_CALLBACK (print_operation_done), NULL);
 
+  gtk_print_operation_set_embed_page_setup (op, TRUE);
+
   res = gtk_print_operation_run (op, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, window, NULL);
 
   if (res == GTK_PRINT_OPERATION_RESULT_IN_PROGRESS)